@import './config.scss';

.infobox {
  align-items: center;
  border-radius: $theme-border-radius-small;
  display: flex;
  height: auto;
  margin-bottom: 30px;
  padding: 15px 20px;

  a {
    color: #fff;
  }

  .infobox__content {
    flex: 1;
  }

  &.infobox--success {
    background: $theme-brand-success;
    color: #fff;
  }

  &.infobox--primary {
    background: $theme-brand-primary;
    color: #fff;
  }

  &.infobox--danger {
    background: $theme-brand-danger;
    color: #fff;
  }

  &.infobox--warning {
    background: $theme-brand-warning;
    color: #fff;
  }

  .mdi {
    margin-right: 10px;
  }

  .infobox__cta {
    border-color: #fff;
    border-radius: $theme-border-radius-small;
    border-style: solid;
    border-width: 2px;
    color: #fff;
    margin-left: 15px;
    padding: 3px 8px;

    .loader {
      display: inline-block;
      height: 12px;
      margin-right: 5px;
      position: relative;
      width: 20px;
      z-index: 9999;
    }
  }

  .infobox__delete {
    color: #fff;
    margin-right: 0;
  }
}
